package org.wisdom.annotation;

import java.lang.annotation.*;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.core.annotation.AliasFor;
import org.wisdom.config.WisdomFeignInterceptorConfiguration;

/**
 * @author 张智研
 * @date 2022/09/02 10:36
 **/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@FeignClient
public @interface WisdomFeignClient {
    @AliasFor(annotation = FeignClient.class)
    String name() default "";

    @AliasFor(annotation = FeignClient.class)
    String contextId() default "";

    @AliasFor(annotation = FeignClient.class)
    String path() default "";

    @AliasFor(annotation = FeignClient.class)
    Class<?>[] configuration() default {WisdomFeignInterceptorConfiguration.class};

    @AliasFor(annotation = FeignClient.class)
    boolean primary() default false;
}
